package com.txzt.gaea.provide.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InformationDeliveryQueryDTO implements Serializable {

    /**
     * 标题
     */
    private String informationTitle;

    /**
     * 发布开始时间
     */
    private String startDeliveryDate;

    /**
     * 发布结束时间
     */
    private String endDeliveryDate;

    /**
     * 发布者ID
     */
    private Long deliveryUserId;

    /**
     * 保密等级
     */
    private Integer secrecyLevel;

    /**
     * 信息类别
     */
    private String informationType;

    /**
     * 数据请求来源
     */
    private int dataSource;


    /***********分页 ***********/

    private int limit = 20;

    private int offset = 1;

    public int getPageSize() {
        return this.limit;
    }

    public int getPageNumber() {
        return this.offset;
    }

}
